home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19950929-19951130
/
000256_news@columbia.edu_Tue Oct 31 14:16:58 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-12-25
|
3KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA14410
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 31 Oct 1995 09:17:07 -0500
Received: by apakabar.cc.columbia.edu id AA10071
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 31 Oct 1995 09:17:05 -0500
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Macro-keys in C-Kermit ?
Date: 31 Oct 1995 14:16:58 GMT
Organization: Columbia University
Lines: 51
Message-Id: <475b4q$9q8@apakabar.cc.columbia.edu>
References: <474ue0$s8g@news.uni-c.dk>
Nntp-Posting-Host: watsun.cc.columbia.edu
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <474ue0$s8g@news.uni-c.dk>,
Henrik Mathorne <ischm@inet.uni-c.dk> wrote:
:
: Is it possible to execute a macro by pressing a hotkey
: in C-kermit, as it is in MS-Kermit. What I want to do
: is, that by pressing a hotkey I select a file on the
: remote system, escape to local system and begin to receive
: the file I selected. I know this can be done on the MS-DOS
: version, but I can't find anything on that subject in
: the "Using C-Kermit" book.
: (We are running C-Kermit 5A(190) on IBM AIX 4.1)
:
Long question, short answer: no. The basic reason for this
limitation is that UNIX versions of C-Kermit do not have
direct access to the keyboard, and so they cannot "see" special
keys (like F-keys, Alt-key combinations, arrow keys, editing
keys, etc). Only "ASCII" keys are visible, and in general you
need all of them to stand in for themselves. A bit more about
this in item 24 of our FAQ:
http://www.columbia.edu/kermit/faq.html
ftp://kermit.columbia.edu/kermit/faq.txt
An interesting project would be to add direct keyboard access
capability to UNIX C-Kermit, so it could see keyboard scan codes
rather than just ASCII values. However, the method for getting
at scan codes would be:
(a) Totally dependent on exactly which kind of computer
and keyboard you have;
(b) Totally dependent on the particular operating system and
version (and UNIX C-Kermit supports about 400 different
UNIX platforms);
(c) Dependent on whether the OS even offers an API for getting
at the keyboard (most don't).
And even when these three conditions held, the result would still
be inconsistent even on a particular computer, depending on whether
you were at its console, logged in through a tty device, telnetted,
rlogin'd, in an xterm window, or any of various other GUI-du-jour
windows. Bringing this capability to all the variants of C-Kermit
and keeping it up to date with new OS releases and hardware would be
a full-time job. Still, it might be interesting to try it for a
couple of high-profile workstations -- Sun, HP, RS/6000, Linux, ...
But quite honestly, I have never seen documentation anywhere showing
how to do this. If anybody wants to send hints, I'll be glad to add
them to my pile.
- Frank